﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ChiTietSP.ascx.cs" Inherits="Control_ChiTietSP" %>
<style type="text/css">
    .chitiet1
    {
        width: 500px;
        border-style: solid;
        border-width: 1px;
    }
    .chitiet2
    {
        width: 100%;
    }
    .style3
    {
        height: 26px;
    }
</style>

<table align="center" cellpadding="2" class="chitiet1">
    <tr>
        <td>
            <asp:DataList ID="DataList1" runat="server">
                <ItemTemplate>
                    <table align="center" cellpadding="2" class="chitiet1">
                        <tr>
                            <td align="center" rowspan="9" valign="top" width="200px">
                                <asp:Image ID="Image1" runat="server" Height="218px" 
                                    ImageUrl='<%# "~/Hinh/"+Eval("HinhSP") %>' Width="200px" />
                            </td>
                            <td bgcolor="#0000CC" class="style3" width="300px">
                                <asp:Label ID="Label1" runat="server" 
                                    Text='<%# "Tên Sản Phẩm :"+Eval("TenSP") %>' Font-Bold="True" 
                                    Font-Size="Large" ForeColor="White"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td width="300px">
                                <asp:Label ID="Label2" runat="server" Text='<%# "Mã Sản Phẩm:"+Eval("MaSP") %>'></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td width="300px">
                                <asp:Label ID="Label3" runat="server" 
                                    Text='<%# "Mô Tả Sản Phẩm: "+ Eval("MoTaSP") %>'></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td width="300px">
                                <asp:Label ID="Label4" runat="server" 
                                    Text='<%# "Ngày Đăng:"+Eval("NgayDang") %>'></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td width="300px">
                                <asp:Label ID="Label5" runat="server" Text='<%# "Gia Sp:"+Eval("GiaSP") %>' 
                                    Font-Bold="True" ForeColor="Red"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td width="300px">
                                <asp:Label ID="Label6" runat="server" 
                                    Text='<%# "Tên Nhà Cung Cấp: "+Eval("MaNhaCC") %>'></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td width="300px">
                                <asp:Label ID="Label7" runat="server" 
                                    Text='<%# "Chất Liệu:"+Eval("MaChatLieu") %>'></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td width="300px">
                                <asp:Label ID="Label8" runat="server" 
                                    Text='<%# "Kiểu Sản Phẩm:"+Eval("MaKieu") %>'></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td width="300px">
                                <asp:Label ID="Label9" runat="server" 
                                    Text='<%# "Số Lượng:"+Eval("SoLuongTon") %>'></asp:Label>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
        </td>
    </tr>
    <tr>
        <td>
            <table align="center" class="chitiet2">
                <tr>
                    <td align="center" width="250px">
                        <asp:HyperLink ID="HyperLink1" runat="server" 
                            NavigateUrl="~/TrangChu/Index.aspx">Trở Về Trang Chủ </asp:HyperLink>
                    </td>
                    <td align="center" width="250px">
                        <asp:LinkButton ID="LinkButton1" runat="server">Giỏ Hàng </asp:LinkButton>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>

